import model from './model'

export default {
    Query: {
        async test(root, args) {
            return await model.Article.cache().findAll(args);
        },
    },
    Article: {
        async user(root) {
            return await model.User.cache().findById(root.userid);
        }
    },
}
